<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员注册</title>
<script type="text/javascript">
//验证码刷新
function reLoadImage(){
	document.getElementById("img_rand_code").src="image.action?r="+ Math.random();
} 

//注意后面的随机数,去掉则不能刷新


</script>
</head>
<body>
	<form method=post action="userCheck.action">
		<table>
			<tr>
				<td align=left>验证码：<font color="red"> *</font></td>
				<td><input type=text name=randCode maxlength=4 value=""></td>
				<td><img title="单击刷新验证码" id="img_rand_code" onclick="reLoadImage();" src="image.action">
					<a href="JavaScript:reLoadImage();">看不清</a>
				</td>
			</tr>
			
			<tr>
				<td colspan=2 align=center><input type=submit value="提交检测"></td>
			</tr>
		</table>
	</form>

</body>
</html>